package com.chutoutian.service;

import com.chutoutian.po.Orders;
import com.chutoutian.vo.CartItem;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface CartService {

    void addItem(String id, HttpSession session);

    void deleteItem(String id, HttpSession session);

    void updateItem(String id, Integer num, HttpSession session);

    void selectedItem(String ids, HttpSession session);

    void unSelectedItem(String ids, HttpSession session);

    Map<String, Object> getOrders(HttpSession session) throws Exception;

    Orders addOrders(HttpSession session) throws Exception;

    List<CartItem> get(HttpSession session);

    Integer getNum(HttpSession session);


}
